export default {
  success(body: any, message?: string) {
    return {
      status: 200,
      body,
      message: message || 'success'
    }
  },
  error(status: number, body?: any, message?: string) {
    return {
      status,
      body: body || '',
      message: message || 'error'
    }
  }
}
